
#ifndef __MY_EXCEPTION_H
#define __MY_EXCEPTION_H

#include <exception>

class Exception : public std::exception
{
	std::string _what;

public:

	Exception(const char *_what)
		:	_what(_what)
	{}

	Exception(const std::string &_what)
		:	_what(_what)
	{}

	virtual ~Exception(){}

	const char* what() const throw()
	{
		return _what.c_str();
	}
};


#endif /*** __MY_EXCEPTION_H ***/

